package lbim.client.ui;

import java.util.Hashtable;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Displayable;

import de.enough.polish.ui.Form;
import de.enough.polish.ui.MessageItem;
import de.enough.polish.util.Locale;
import javax.microedition.lcdui.CommandListener;

/**
 *
 * @author tharindu
 */
public class Help extends Form implements CommandListener {

    private MainUI ui_;
    private Hashtable commands_;

    public Help() {
        //#style messagescreen
        super(Locale.get("help.title")); //[LOCALE]

        //#style message
        MessageItem messageitem = new MessageItem("\nKey Map", " 2 - Up\n 4 - Left\n 6 - Right\n 8 - Down\n # - Zoom In\n * - Zoom Out\nDefault joystick keys can also use to move around the screen. You can select contacts from a list and chat with your colleagues in tabbed form, indications for new messages and more IM features added. You can see your friends locations on Google Maps Powered Custom Map. Cheers !!");//[LOCALE]


        ui_ = MainUI.getInstance();
        commands_ = ui_.getCommands();

        try {
            setCommandListener(this);
        } catch (Exception e) {
            e.printStackTrace();
        }
        addCommand((Command) commands_.get(new Integer(MainUI.CMD_OK)));

        this.append(messageitem);

    }

    public void commandAction(Command c, Displayable d) {
        MainUI.hsenidCommand(c, d);
    }
}

